package com.aiit.service;

import com.aiit.pojo.bo.Task;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HomeService {
    List<Task> selectTrueStatus(Long id);

    List<Task> selectFalseStatus(Long id);

    public List<Task> searchTaskByHomeFinish(Long id);

    public List<Task> searchTaskByHomeUNFinish(Long id);

    public List<Task> searchTrueTaskByStatusandUser(String title,String create_time,String finish_time,Long id);

    public List<Task> searchFalseTaskByStatusandUser(String title,String create_time,String finish_time,Long id);

    /**
     * 切换事务状态 已办->未办
     * @return
     */
    public int updateTaskByStatus1(int id);

    /**
     * 切换事务状态 未办->已办
     * @return
     */
    public int updateTaskByStatus2(int id);

    /**
     * 修改密码
     * @param newpwd
     * @return
     */
    public int modifyPassword(String newpwd,Long id);
}
